home *** CD-ROM | disk | FTP | other *** search
-
- For.doc
-
-
-
- For only works under AmigaOS 2.0 and higher.
- Some features requires whatis.library
-
- "For" is a foreach command. For each object (file/dir) which pattern
- (name pattern or FileType pattern) "For" execute the specified command
- replacing all %% (maximum 5) by the name of the current file.
-
- Eg:
-
- For *.doc DO copy %% to DOC:
-
- Search all file ine current dir which match to *.doc and execute the
- command: "copy file.doc to DOC:"
-
- For #? ALL Type "Icon" DO Protect %% -e
-
- Look in the current dir and subdirs for icon (.info) files and
- execute the command: "Protect iconfile -d"
-
- For can get it's default argument in an environnement variable named
- "ENV:For".
-
-
- Usage: For <Patterns> [Files <MATCH|YES|NO>] [Dirs <MATCH|YES|NO>]
- [Since <Date>] [Before <Date>] [MinSize <Number>] [MaxSize <Number>]
- [PosProtect <L|C|H|S|P|A|R|W|E|D>] [NegProtect <L|C|H|S|P|A|R|W|E|D>]
- [Type <FileType0,,,FileType9|#=SUB|!=EXLC>] [All] [ASync] [ReadSize]
- [ShowBytes] [Deep] [ShowFileType] [FileTypeVar <var name>] [FullPathArgs]
- [DO <Command [args] [,Command [args] [,...]]>]
-
- Pattern $Pat1 $Pat2 $Pat255: any number of pattern like
- *.doc
- WB:*.info More MuchMore *.doc
-
- FILES:
- MATCH: look if file match to current pattern
- YES: include all file encounter
- NO: exclude all file encounter
- default YES
- DIRS:
- MATCH: look if dir match to current pattern
- YES: include all dir encounter
- NO: exclude all dir encounter
- default YES
-
- Since $date: include only file older than $date
-
- Before $date: include only file newer than $date
-
- MinSise $size: include only file bigger than $size
-
- MaxSise $size: include only file tyner than $size
-
- bit C and L are special bit (not AmigaDOS)
- C means file have a comment
- L means file is a link
- PosProtect $protectbit: only include file which have this bits like
- ae
- srwed
-
- NegProtect $protectbit: only include file which have'nt this bits like
- a
- hs
-
- Type filetype_spec_list:
-
- for Template reason you must enclose your filetype_spec_list by '"'
- and each FileType name must be enclosed by open/close brace ()
- FileType is one of the FileType of whatis.library this is not usable if
- have not instaled the whatis.library in your system.
-
- ~ means exlude this FileType
- # means with its sub types
-
- "~#Exe" exclude all executable files
- "Icn Disk,Icn Grbg" only include "Icn Disk" and "Icn Grbg"
-
- ALL: enter in all sub directories
-
- ASYNC: this runs your command asyncrously (default to FALSE)
-
- READSIZE $size: $size "For" read to recognise FileType
-
- SHOWBYTES $numbyte: byte to display, meaningfull only when SHOWFILETYPE is set
-
- DEEP: Choose Whatis level of Whatis.library, see whatis.library for more
- details.
- 0 = LightWhatIs (Slow FileType Recognition, but do better result)
- 1 = DeepWhatIs
- Default is LightWhatIs (0)
-
- SHOWFILETYPE: show the FileType name.
-
- DO: your command to execute, replacing all %% (upto 5) by the current
- object and ',' by CR enable you doing multinple command at time.
- if you dont supply a DO, SHOWFILETYPE is automaticaly enable emulating
- a WhatIs command.
-
-
- FILETYPEVAR: Variable name to initialize to the last encoutered file type
- (See Extract script example)
-
- FULLPATHARGS: Give args to 'DO' command with full path
-
-